<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Change password</title>
</head>
<body>

	<form:form action="changePassword" commandName="changePasswordDto" method="POST">
		<table>
			<tr>
				<td colspan="3">Change password</td>
			</tr>
			<tr>
				<td><form:label path="oldPassword">Old password</form:label></td>
				<td><form:password path="oldPassword" /></td>
				<td><form:errors path="oldPassword"></form:errors></td>
			</tr>
			<tr>
				<td><form:label path="newPassword">New password</form:label></td>
				<td><form:password path="newPassword" /></td>
				<td><form:errors path="newPassword"></form:errors></td>
			</tr>
			<tr>
				<td><form:label path="newPasswordRetyped">New password</form:label></td>
				<td><form:password path="newPasswordRetyped" /></td>
				<td><form:errors path="newPasswordRetyped"></form:errors></td>
			</tr>
			<tr>
				<td><input type="reset" value="Reset"></td>
				<td colspan="2"><input type="submit" value="Change"></td>
			</tr>
		</table>
	</form:form>

</body>
</html>